CC              =	/opt/SUNWspro/bin/cc
CC_FLAGS        =	-m32 -lrt -mt -O5 -fast -xarch=sparcvis2 -DNDEBUG -D_REENTRANT -DSPARC sparc_mcas.il
LINK            =	ld

all: Algo Tour Bakery TimeTest

Algo: main.o 
	$(CC) main.o -lm -lpthread  -o Algo
	
main.o: main.c 
	$(CC) $(CC_FLAGS) -c main.c

Tour: TournamentAlgo.o
	$(CC) TournamentAlgo.o -lm -lpthread -o Tour

TournamentAlgo.o: TournamentAlgo.c
	$(CC) $(CC_FLAGS) -c TournamentAlgo.c
	
Bakery: Bakery.o
	$(CC) Bakery.o -lpthread -o Bakery

Bakery.o: Bakery.c
	$(CC) $(CC_FLAGS) -c Bakery.c

clean:
	rm *.o Algo Tour Bakery
